<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "goods_class".
 *
 * @property int $id
 * @property string $classname 分类名称
 * @property int $sort 排序
 * @property string $createtime 创建时间
 */
class GoodsClass extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'goods_class';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['sort'], 'integer'],
            [['createtime'], 'safe'],
            [['classname'], 'string', 'max' => 20],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'classname' => '分类名称',
            'sort' => '排序',
            'createtime' => '创建时间',
        ];
    }
}
